package com.learning.dubbo.base.config.starter.consumer;


import com.learning.dubbo.base.config.starter.api.GreetingsService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: BussiService
 * Description: 业务类
 * Date: 2020/6/15 13:43 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@RestController
@RequestMapping("dubbo")
public class BussiServiceController {

    @DubboReference
    private GreetingsService greetingsService;

    @RequestMapping("doSayHi")
    public String doSayHi(String name) {
        return greetingsService.sayHi(name);
    }
}
